package cn.wolfcode.luowowo.member.mapper;

import cn.wolfcode.luowowo.member.domain.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserInfoMapper {
    void insert(UserInfo entity);

    /**
     * 获取用户数据
     *
     * @param password
     * @return
     */
    UserInfo getUserInfo(@Param("phone") String phone, @Param("password") String password);

    /**
     * 查询是否已注册手机号
     *
     * @param phone
     * @return
     */
    UserInfo get(String phone);

    List<UserInfo> selectAll();
}
